package com.gxy.learn.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("nacos-provider-server")
public interface ProviderClient {
    @GetMapping("/provider/hello")
    String hello(@RequestParam(name = "name") String name);

    @PostMapping("/provider/insert")
    String insert();

}
